import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'

export function getToken() {
    return Cookies.get(TokenKey)
}

export function setToken(token) {
    //将token放入cookie
    return Cookies.set(TokenKey, token)
}

export function removeToken() {
    //清楚cookie中的token信息
    return Cookies.remove(TokenKey)
}